/* app/actions/detail.js */

import request from '../utils/request';

import { JOIN_GROUP,CREATE_GROUP } from '../constants/actionTypes';

export function createGroup(){
	var url = 'http://jsapi.tuan.ymatou.com/api/Tuan/CreateGroup';
	return {
	    type: CREATE_GROUP,
	    payload: {
	        promise: request(url,{/*options*/},params),
	        onSuccess: (data) => null,
	        onError: (e) => null
	    }
	}
}

export function joinGroup(){
	var url = 'http://jsapi.tuan.ymatou.com/api/Tuan/JoinGroup';
	return {
	    type: JOIN_GROUP,
	    payload: {
	        promise: request(url,{/*options*/},params),
	        onSuccess: (data) => null,
	        onError: (e) => null
	    }
	}
}
